package com.codeczx.slidingconflictdemo;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity {


    @BindView(R.id.outside)
    Button outside;
    @BindView(R.id.inside)
    Button inside;
    @BindView(R.id.rv_inside_sv)
    Button rvInsideSv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.outside, R.id.inside, R.id.rv_inside_sv})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.outside:
                startActivity(new Intent(MainActivity.this, OutsideConflictActivity.class));
                break;
            case R.id.inside:
                startActivity(new Intent(MainActivity.this, InsideConflictActivity.class));
                break;
            case R.id.rv_inside_sv:
                startActivity(new Intent(MainActivity.this, RVInsideSVActivity.class));
                break;
        }
    }
}
